.sources-list-container {
  padding: 20px 0;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.page-header h1 {
  color: var(--primary-color);
}

.add-button {
  display: flex;
  align-items: center;
  gap: 5px;
  background-color: var(--success-color);
}

.add-button:hover {
  background-color: #27ae60;
}

/* 筛选器样式 */
.filters {
  display: flex;
  gap: 15px;
  background-color: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  margin-bottom: 20px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-group label {
  font-size: 14px;
  color: var(--light-text-color);
}

.filter-group select {
  min-width: 200px;
  max-width: 300px;
}

/* 表格样式 */
.sources-list {
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.sources-list table {
  width: 100%;
  border-collapse: collapse;
}

.sources-list th,
.sources-list td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.sources-list th {
  background-color: rgba(0, 0, 0, 0.02);
  font-weight: 500;
}

.sources-list tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.error-row {
  background-color: rgba(231, 76, 60, 0.05);
}

.error-row:hover {
  background-color: rgba(231, 76, 60, 0.1);
}

/* 操作按钮样式 */
.actions {
  display: flex;
  gap: 8px;
}

.action-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  font-size: 14px;
  padding: 0;
}

.monitor-button {
  background-color: var(--secondary-color);
}

.edit-button {
  background-color: var(--warning-color);
  padding: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.delete-button {
  background-color: var(--danger-color);
}

.edit-button:hover {
  background-color: #e67e22;
}

.delete-button:hover {
  background-color: #c0392b;
}

/* 添加表单样式 */
.add-source-form {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  margin-bottom: 25px;
}

.add-source-form h2 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.add-source-form h3 {
  font-size: 16px;
  margin: 15px 0 10px;
  color: var(--primary-color);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.error {
  color: var(--danger-color);
  font-size: 12px;
  margin-top: 5px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.form-actions button[type="button"] {
  background-color: #95a5a6;
}

.form-actions button[type="button"]:hover {
  background-color: #7f8c8d;
}

.no-data {
  text-align: center;
  padding: 50px 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  color: var(--light-text-color);
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .sources-list th:nth-child(3),
  .sources-list td:nth-child(3) {
    display: none;
  }
}

/* SourcesList.css - Add styles for AI analysis features */

/* AI分析按钮 */
.ai-analyze-button {
  background-color: #6b46c1;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.3s;
}

.ai-analyze-button:hover {
  background-color: #553c9a;
}

.ai-analyze-button:disabled {
  background-color: #a3a3a3;
  cursor: not-allowed;
}

/* 添加采集源表单中的URL输入组 */
.url-with-analyze {
  position: relative;
}

.url-input-group {
  display: flex;
  gap: 8px;
}

.url-input-group input {
  flex: 1;
}

/* 应用AI结果到表单按钮 */
.ai-apply-action {
  margin: 10px 0;
  text-align: right;
}

.apply-ai-button {
  background-color: #6b46c1;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: bold;
}

.apply-ai-button:hover {
  background-color: #553c9a;
}

/* AI分析结果展示 */
.ai-analysis-result {
  background-color: #f0f4ff;
  border: 1px solid #c3dafe;
  border-radius: 6px;
  padding: 15px;
  margin: 15px 0;
  position: relative;
}

.ai-analysis-result h3 {
  color: #4c51bf;
  margin-top: 0;
  font-size: 18px;
}

.ai-analysis-result ul {
  list-style: none;
  padding: 0;
}

.ai-analysis-result li {
  margin-bottom: 10px;
  font-family: monospace;
  background-color: #edf2f7;
  padding: 5px 10px;
  border-radius: 4px;
  overflow-wrap: break-word;
}

.dismiss-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: transparent;
  border: none;
  color: #4a5568;
  cursor: pointer;
  font-size: 14px;
}

/* 旋转动画 */
.spinning {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 代理状态样式 */
.proxy-enabled {
  background-color: rgba(46, 204, 113, 0.2);
  color: #27ae60;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  display: inline-block;
  cursor: default;
}

.proxy-disabled {
  background-color: rgba(189, 195, 199, 0.2);
  color: #7f8c8d;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  display: inline-block;
}

/* 表单内的代理设置 */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  height: auto;
  margin-right: 5px;
}

.form-section {
  margin-bottom: 20px;
}

.form-section h3 {
  margin-bottom: 10px;
  font-size: 16px;
  color: var(--primary-color);
}

.form-text {
  font-size: 12px;
  color: var(--light-text-color);
  margin-bottom: 10px;
} 